<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
	${user}
	<form action="/JavaWeb1906/user?method=update" method="post">
		<input type="hidden" value="${user.id}" name="id"/>
		用户名：<input type="text" name="name" value="${user.name}"/><br/>
		年龄：<input type="text" name="age" value="${user.age}"/><br/>
		性别：
		<c:if test="${user.gender=='男'}">
			<input type="radio" checked="true" name="gender" value="男"/>男 
		</c:if>
		<c:if test="${user.gender!='男'}">
			<input type="radio" name="gender" value="男"/>男 
		</c:if>
		
		<input type="radio" <c:if test="${user.gender=='女'}">checked="true"</c:if> name="gender" value="女"/>女 <br/>
		<input type="submit" value="修改"/>
	</form>

<body>

</body>
</html>